﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeGenerationPipeline.Contracts;
using System.IO;
using System.Xml;
using Metaspec;
using AbstraX.Contracts;
using AbstraX.Contracts.Packages;

namespace CodeGenerationPipeline.PackageElements
{
    public class CodeGenerationPackage : ICodeGenerationPackage
    {
        public XmlDocument WSDLDocument { get; set; }
        public XmlDocument AbstraXToWSDL { get; set; }
        public Dictionary<string, IElementBuild> ElementBuilds { get; set; }
        public DirectoryInfo WorkspaceDirectory { get; set; }
        public IPackageServiceType PortType { get; set; }
        public object CurrentWhenFilter { get; set; }

        public CodeGenerationPackage(Type portType, Dictionary<string, IElementBuild> elementBuilds)
        {
            this.PortType = new PackageServiceType(portType);
            this.ElementBuilds = elementBuilds;
        }

        public CodeGenerationPackage(CsClass portClass, Dictionary<string, IElementBuild> elementBuilds)
        {
            this.PortType = new PackageServiceType(portClass);
            this.ElementBuilds = elementBuilds;
        }
    }
}
